package com.tuoyu.peopletest.view.custom;

import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.tuoyu.peopletest.R;
import com.tuoyu.peopletest.utils.SCUIUtils;

/**
 * 条目选择
 */
public class ItemSelectView extends RelativeLayout {
    private TextView tvContent;
    private TextView tvLeft;
    public ItemSelectView(Context context) {
        super(context);
    }

    public ItemSelectView(Context context, AttributeSet attrs) {
        super(context, attrs);
        LayoutInflater.from(context).inflate(R.layout.view_item_select,this);
        tvContent = findViewById(R.id.tv_content);
        tvLeft = findViewById(R.id.tv_left);
    }

    public ItemSelectView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    public void setContentText(String s) {
        tvContent.setText(s);
    }

    public void setLetText(Object s) {
        SCUIUtils.setTextStr(tvLeft,s);
    }
}
